package cn.baisee.com.demo.service;
import cn.baisee.com.demo.model.GenTable;
import org.springframework.beans.factory.annotation.Autowired;
import cn.baisee.com.demo.dao.TableDao;

import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PerasonService {
    @Autowired
   TableDao tableDao;
    public List<GenTable> getAll(){
        return tableDao.getAll();
    }



    public void  delete(int id){
        tableDao.delete(id);
    }

    public void update(GenTable p){
        tableDao.update(p);
    }

    public void newp(GenTable p){
        tableDao.newp(p);
    }
}

